package com.chenhs.oop.study.反射.实例.service.impl;


import com.chenhs.oop.study.反射.实例.dao.IUserDao;
import com.chenhs.oop.study.反射.实例.dao.impl.UserDaoImpl;
import com.chenhs.oop.study.反射.实例.ntity.User;
import com.chenhs.oop.study.反射.实例.service.IUserService;

/**
 * <ul>peanut 学习
 * <li> Author:      chenhs</li>
 * <li>E-Mail:    </li>
 * <li> Date:     2021/6/5 - 19:35</li>
 * <li>Description:        注释  </li>
 * <li>+-History-------------------------------------+</li>
 * <li>| Date          Author       Description    </li>
 * <li>|2021/6/5 - 19:35         chenhs       Created   </li>
 * <li>+------------------------------------------------</li>
 * </ul>
 */
public class UserServiceIpml implements IUserService {
  IUserDao	userDao= new UserDaoImpl();
	@Override
	public void login(String name, String password) {
		userDao.findByNames();
		System.out.println("登录实现方法");
	}
	
	@Override
	public void register() {
		userDao.saveUser(new User(123,"张三","123456"));
		System.out.println("注册实现方法");
	}
}
